package org.dding.mvc.validate;


public class ValidateException extends Exception {

	private static final long serialVersionUID = -6785120459281951025L;
    private String inputField;
    private Object inputValue;

    public ValidateException(String message, Object inputValue) {
        super(message);
        this.inputValue = inputValue;
    }

    public ValidateException(String message, String inputFieldName, Object inputValue) {
        super(message);
        this.inputValue = inputValue;
        this.inputField = inputFieldName;
    }

    public void setInputField(String inputField) {
        this.inputField = inputField;
    }

    public String getInputField() {
        return inputField;
    }

    public Object getInputValue() {
        return inputValue;
    }

    public static void main(String[] args) {

    }
}
